//
//  PhotoLoadUtil.h
//  Buddy
//
//  Created by caopan on 7/7/14.
//  Copyright (c) 2014 Changyou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/**
   从相册或者相机获取图片公共处理类
 */

typedef  void (^SLPhotoLoadBlock) (UIImage * image,BOOL isCancel);
typedef  void (^SLPhotoActionSheetBlock)(UIImage * image);

@interface SLPhotoLoadUtil : NSObject<UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIActionSheetDelegate>

+ (BOOL)loadPhoto:(SLPhotoLoadBlock)block
          isCamera:(BOOL)isCamera
            sender:(id)object;

+ (void)showSelectAction:(UIViewController *)controller
                   block:(SLPhotoActionSheetBlock)block;

@end
